import { AppRouteRecordRaw } from '@/types/route'
import { shallowRef } from 'vue'
import Layout from '@/layout/index.vue'

export let systemRouter: AppRouteRecordRaw = {
  path: '/deployUpgrade',
  name: 'deployUpgrade',
  component: shallowRef(Layout),
  meta: {
    title: '部署/升级中心',
    icon: 'icon-bushushengji_iconbeifen'
  },
  children: [
    {
      path: '/deployUpgrade/mirroringManage',
      component: () =>
        import(/* webpackChunkName: "deployUpgrade" */ '@/views/deployUpgrade/mirroring/mirroringManage.vue'),
      name: 'mirroringManage',
      meta: { title: '镜像管理' }
    },
    {
      path: '/deployUpgrade/namespace',
      component: () => import(/* webpackChunkName: "deployUpgrade" */ '@/views/deployUpgrade/namespace/namespace.vue'),
      name: 'namespace',
      meta: { title: '命名空间' }
    },
    {
      path: '/deployUpgrade/workload',
      component: () => import(/* webpackChunkName: "deployUpgrade" */ '@/views/deployUpgrade/workload/workload.vue'),
      name: 'workload',
      meta: { title: '工作负载' }
    },
    {
      path: '/deployUpgrade/deployTask',
      component: () => import(/* webpackChunkName: "deployUpgrade" */ '@/views/deployUpgrade/task/deployTask.vue'),
      name: 'deployTask',
      meta: { title: '部署任务' }
    },
    {
      path: '/deployUpgrade/applicationManage',
      component: () =>
        import(/* webpackChunkName: "deployUpgrade" */ '@/views/deployUpgrade/application/applicationManage.vue'),
      name: 'applicationManage',
      meta: { title: '应用管理' }
    },
    {
      path: '/deployUpgrade/deployManage',
      component: () => import(/* webpackChunkName: "deployUpgrade" */ '@/views/deployUpgrade/deploy/deployManage.vue'),
      name: 'deployManage',
      meta: { title: '部署管理' }
    }
  ]
}

export default systemRouter
